package com.accessibility.core

import android.graphics.Rect
import android.view.accessibility.AccessibilityNodeInfo

data class EventWrapper(
    var packageName: String, var className: String?, var eventType: Int
) {
    override fun toString() =
        "packageName:$packageName | className:$className | eventType:$eventType"
}


/**
 * 视图结点包装类
 * */
data class NodeWrapper(
    var text: String? = null,
    var id: String? = null,
    var bounds: Rect? = null,
    var className: String,
    var description: String? = null,
    var clickable: Boolean = false,
    var scrollable: Boolean = false,
    var editable: Boolean = false,
    var nodeInfo: AccessibilityNodeInfo? = null
) {
    override fun toString() =
        "className:$className | text:$text | id:$id | description:$description | bounds:$bounds | clickable:$clickable | scrollable:$scrollable | editable:$editable"
}


data class AnalyzeSourceResult(
    val nodes: ArrayList<NodeWrapper> = arrayListOf()
)